package loja.view.editor.components.table;

import javax.swing.JTable;

import loja.view.editor.components.ComponentEditor;

public class TableEditor extends JTable implements ComponentEditor {

	private static final long serialVersionUID = 1L;

	@Override
	public void onCancel() {
		setEnabled(true);	
	}

	@Override
	public void onEdit() {
		setEnabled(false);	
	}

	@Override
	public void onEnd() {
		setEnabled(false);	
	}

	@Override
	public void onInclude() {
		setEnabled(false);	
	}

	@Override
	public void onRemove() {
		clearSelection();
		removeAll();
		setEnabled(true);	
	}

	@Override
	public void onSave() {
		clearSelection();
		removeAll();	
		setEnabled(true);	
	}

	@Override
	public void onStart() {	
		setEnabled(true);	
	}

}
